package com.wangnian.wangcai.dao;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class NameInfo {
    @Id
    @Column(length = 20)
    private String code;
    /**
     * 股票名称
     */
    private String name;

    /**
     * 昨天的最高价
     */
    private double preHigh;

    /**
     * 今天的平均价减昨天平均价
     */
    private double avg3Differ;

    /**
     * 能买
     */
    private boolean allow;

    /**
     * 今天最高价-当前价
     */
    private double down;

    /**
     * 今天当前价-最低价
     */
    private double up;

    /**
     * 今天涨幅
     */
    private double zf;

    /**
     * 价格
     */
    private double price;

    /**
     * 是否买
     */
    private boolean mai;

    /**
     * 监控
     */
    private boolean monitor;

    public boolean isMonitor() {
        return monitor;
    }

    public void setMonitor(boolean monitor) {
        this.monitor = monitor;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPreHigh() {
        return preHigh;
    }

    public void setPreHigh(double preHigh) {
        this.preHigh = preHigh;
    }

    public boolean isAllow() {
        return allow;
    }

    public void setAllow(boolean allow) {
        this.allow = allow;
    }

    public double getDown() {
        return down;
    }

    public void setDown(double down) {
        this.down = down;
    }

    public double getUp() {
        return up;
    }

    public void setUp(double up) {
        this.up = up;
    }

    public double getZf() {
        return zf;
    }

    public void setZf(double zf) {
        this.zf = zf;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public boolean isMai() {
        return mai;
    }

    public void setMai(boolean mai) {
        this.mai = mai;
    }

    public double getAvg3Differ() {
        return avg3Differ;
    }

    public void setAvg3Differ(double avg3Differ) {
        this.avg3Differ = avg3Differ;
    }
}
